home *** CD-ROM | disk | FTP | other *** search
- failat 21
-
- if not exists /XEN-Icons
- echo "*n Please change current directory to that of MagicWB/Update *n or start the installation from the Workbench!*n"
- quit
- endif
-
- echo "*n*e[1;32m ____________________________________________________________________"
- echo " *e[43m *e[0m"
- echo " *e[0;32;43m Welcome to MagicWB v1.2p: UPDATE MAGICWB*e[1m *e[0m"
- echo " *e[1;4;43m *e[0m"
- echo "*n*n This small installation was written to provide you with the most"
- echo " comfortable way of updating the changes between version 1.0 and"
- echo " version 1.2p of *e[32mMagicWB*e[0m."
- echo " *n This installation should only be done if you have already installed"
- echo " the previous version 1.0 of *e[32mMagicWB*e[0m. This installation will only"
- echo " install the differences between the two versions. Please consult"
- echo " the README file in this directory for detailed information."
- echo noline "*n*n Start the UPDATE? "
-
- set > nil: InpVar ?
-
- if $InpVar eq "ja"
- skip Start
- endif
-
- if $InpVar eq "j"
- skip Start
- endif
-
- if $InpVar eq "y"
- skip Start
- endif
-
- if $InpVar eq "yes"
- skip Start
- endif
-
- echo noline "*n*e[32m Update aborted."
- quit
-
- lab Start
- assign Magic: /
- resident IU IconUpdate pure
- echo "*e[1;1H*e[J"
-
- if exists SYS:System/Intellifont.info
- echo noline " Copying 'Intellifont.info' Icon to SYS:System..."
- IU tsd /XEN-Icons/System/Intellifont.info SYS:System/Intellifont.info
- echo "....*e[33mDONE*e[0m*n"
- endif
-
- if exists SYS:System/Format.info
- echo noline " Updating 'Format.info' Icon in SYS:System..."
- IU tsdc /XEN-Icons/System/Format.info SYS:System/Format.info
- echo "........*e[33mDONE*e[0m*n"
- endif
-
- if exists SYS:Tools/HDBackup.info
- echo noline " Updating 'HDBackup.info' Icon in SYS:Tools..."
- IU tsdc /XEN-Icons/Tools/HDBackup.info SYS:Tools/HDBackup.info
- echo ".......*e[33mDONE*e[0m*n"
- endif
-
- if exists SYS:Tools/HDToolBox.info
- echo noline " Copying 'HDToolBox.info' Icon to SYS:Tools..."
- IU tsd /XEN-Icons/Tools/HDToolBox.info SYS:Tools/HDToolBox.info
- echo ".......*e[33mDONE*e[0m*n"
- endif
-
- if exists SYS:Tools/MEmacs.info
- echo noline " Copying 'MEmacs.info' Icon to SYS:Tools..."
- IU tsd /XEN-Icons/Tools/MEmacs.info SYS:Tools/MEmacs.info
- echo "..........*e[33mDONE*e[0m*n"
- endif
-
- echo noline " Updating Monitor-Icons in SYS:Devs/Monitors..."
- list > ram:MWB SYS:Devs/Monitors/#?.info lformat "IU > NIL: tsdc /XEN-Icons/Devs/Monitors/def_Monitor.info SYS:Devs/Monitors/%n"
- failat 21
- execute > NIL: ram:MWB
- echo "......*e[33mDONE*e[0m*n"
-
- echo noline " Updating Commodity-Icons in SYS:Tools/Commodities..."
- list > ram:MWB SYS:Tools/Commodities/#?.info lformat "IU > NIL: tsdc /XEN-Icons/Tools/Commodities/%n SYS:Tools/Commodities/%n"
- failat 21
- execute > NIL: ram:MWB
- echo "*e[33mDONE*e[0m*n"
-
- echo noline " Updating Commodity-Icons in SYS:WBStartup..."
- list > ram:MWB SYS:WBStartup/#?.info lformat "IU > NIL: tsdc /XEN-Icons/Tools/Commodities/%n SYS:WBStartup/%n"
- failat 21
- execute > NIL: ram:MWB
- echo "........*e[33mDONE*e[0m*n"
-
- echo noline " Updating DEVS:DOSDrivers-Icons' tooltypes..."
- list > ram:MWB SYS:Devs/DOSDrivers/#?0.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver0.info %s%s"
- execute > NIL: ram:MWB
- list > ram:MWB SYS:Devs/DOSDrivers/#?1.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver1.info %s%s"
- execute > NIL: ram:MWB
- list > ram:MWB SYS:Devs/DOSDrivers/#?2.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver2.info %s%s"
- execute > NIL: ram:MWB
- if exists SYS:Storage/DOSDrivers
- list > ram:MWB SYS:Storage/DOSDrivers/#?0.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver0.info %s%s"
- execute > NIL: ram:MWB
- list > ram:MWB SYS:Storage/DOSDrivers/#?1.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver1.info %s%s"
- execute > NIL: ram:MWB
- list > ram:MWB SYS:Storage/DOSDrivers/#?2.info lformat "IU > NIL: dcs /XEN-Icons/Devs/DOSDrivers/def_DOSDriver2.info %s%s"
- execute > NIL: ram:MWB
- endif
- echo "........*e[33mDONE*e[0m*n"
-
- echo noline " Updating DEFAULT-Icons in ENVARC:Sys..."
- copy > NIL: /XEN-Icons/Prefs/Env-Archive/Sys/#?.info TO ENVARC:Sys
- echo ".............*e[33mDONE*e[0m*n"
-
-
- echo noline " Updating 'Marble_CLASSIC' in SYS:Prefs/Patterns..."
- set PattPath SYS:Prefs/Patterns
- if not exists $PattPath
- makedir $PattPath
- endif
-
- version >NIL: exec.library 39
- if warn
- copy > NIL: /Patterns/Patterns2.0/Marble_CLASSIC TO $PattPath
- else
- SYS:Prefs/WBPattern FROM WBPattern.pre USE
- copy > NIL: /Patterns/Marble_CLASSIC TO $PattPath
- copy > NIL: /Patterns/MarbleDark TO $PattPath
- copy > NIL: /XEN-Icons/Prefs/Env-Archive/Sys/WBPattern.prefs ENVARC:Sys
- endif
- echo "..*e[33mDONE*e[0m*n"
-
- echo noline " Updating MagicWB-Fonts in FONTS:..."
- copy > NIL: /Fonts/#? TO FONTS: all
- echo ".................*e[33mDONE*e[0m*n"
-
- if exists SYS:Disk.info
- echo noline " Updating HardDisk-Icon in SYS:..."
- IU > NIL: dcw XEN-Icons/SPECIAL/HD.info SYS:Disk.info
- echo "...................*e[33mDONE*e[0m*n"
- else
- lab Path
- echo noline "*n Please enter the PATH where the HardDisk-Icon*n is located (i.e. 'DH0:'): "
- set > NIL: Path ?
- if > NIL: not exists $Path
- echo " Wrong path, path does not exist! Try again...*n"
- skip back path
- endif
- echo noline " Updating HardDisk-Icon in $Path..."
- cd $Path
- if exists Disk.info
- IU > NIL: dcw Magic:XEN-Icons/SPECIAL/HD.info Disk.info
- endif
- cd Magic:
- echo "...................*e[33mDONE*e[0m*n"
- endif
-
- lab HardDisk
-
- echo noline " Do you want to have the new HardDisk-Icon installed to other partitions? "
- set > nil: HardDisk ?
- echo "*e[1;1H*e[J"
- if $HardDisk eq "ja"
- skip InstallHardDisk
- endif
- if $HardDisk eq "j"
- skip InstallHardDisk
- endif
- if $HardDisk eq "y"
- skip InstallHardDisk
- endif
- if $HardDisk eq "yes"
- skip InstallHardDisk
- endif
- skip Continue
-
- lab InstallHardDisk
- echo noline "*N Please enter the DEVICE NAME of your desired partition (i.e. 'DH0:'): "
- set > nil: Device [Return]
- set > nil: Device ?
- if not exists $Device
- echo " Wrong device, $Device does not exist! Try again..."
- skip back InstallHardDisk
- endif
- echo noline "*n Installing HardDisk-Icon to $Device..."
- cd $Device
- IU > NIL: dcw Magic:XEN-Icons/SPECIAL/HD.info Disk.info
- cd Magic:
- echo "..*e[33mDONE*e[0m*n"
- skip back HardDisk
-
- lab Continue
-
- echo noline "*n Recursively updating Drawer-Icons in SYS: ..."
- list > ram:MWB SYS: dirs all lformat "if exists *"SYS:%n.info*" *nIU > NIL: cw XEN-Icons/Prefs/Env-Archive/Sys/def_Drawer.info *"SYS:%n.info*" *nendif*n"
- execute > NIL: ram:MWB
- echo "...................*e[33mDONE*e[0m"
-
- echo "*n*n You can now decide (again) which type of Prefs-Icon you want to have"
- echo " installed to your SYS: directory. Please type either *"SMALL*" or *"BIG*""
- echo " in the following request..."
- lab Retry
- echo noline "*n Which type of Prefs-Icon should be installed? *e[32m"
- set > NIL: Prefs ?
- echo noline "*e[0m"
- if $Prefs eq "SMALL"
- Echo noline " Installing SMALL Prefs-Icon..."
- IU > NIL: cw Magic:XEN-Icons/SPECIAL/Prefs.info SYS:Prefs.info
- echo "..*e[33mDONE*e[0m"
- else
- if $Prefs eq "BIG"
- Echo noline " Installing BIG Prefs-Icon..."
- IU > NIL: cw Magic:XEN-Icons/SPECIAL/Prefs2.info SYS:Prefs.info
- echo "..*e[33mDONE*e[0m"
- skip OK
- endif
- echo " You MUST enter either *"SMALL*" or *"BIG*"! Try again..."
- skip back Retry
- endif
-
- lab OK
-
- if exists SYS:Trashcan.info
- IU > NIL: cw XEN-Icons/Prefs/Env-Archive/Sys/def_trashcan.info SYS:Trashcan.info
- endif
-
- echo "*n*e[32m Update is finished.*n*n"
- echo " NOTE: *e[0mThis installation has ONLY updated the Drawer-Icons in your SYS:"
- echo " directory (and of course all sub-directories of SYS:)."
- echo " So you may still find old MagicWB-Drawers in other directories. If you"
- echo " also want to update these Drawer-Icons, please use the *"UPDATE DRAWERS*""
- echo " installation of MagicWB 1.2p. Thank you."
- echo "*n [Return]"
- set > NIL: Return ?
-
- delete > NIL: ram:MWB
- resident IU remove
- assign magic: remove
- quit
-